<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>

    <style>
        [v-cloak] {
            display: none;
        }
    </style>
</head>
<body>
    <div id="app">
        <p>{{ msg }}</p>

        <p v-cloak>{{ msg }}</p>

        <p v-text="msg"></p>


        <p>{{ msg2 }}</p>

        <p v-text="msg2"></p>

        <p v-html="msg2"></p>

        <p>=========================== {{ msg }} ============================</p>

        <p v-text="msg">------------------+++++++++++++++++++++++</p>

        <p v-text="msg + '123456'"></p>

        <p v-text="flage ? msg : msg2"></p>
    </div>

    <script src="./lib/vue.min-2.6.11.js"></script>
    <script>
    
        const vm = new Vue({
            el: '#app',
            data: {
                msg:'学而时习之，不亦说乎~',
                msg2:'<h3> 这是 h3 标签</h3>',
                flage:true
            }
        })
    
    
    </script>
</body>
</html>